package com.voute.Model.Impl;

import com.voute.Api.CommentsService;
import com.voute.Model.Bean.CommentsBean;
import com.voute.Model.IGetCommentsModel;
import com.voute.Utils.ServiceFactory;

import rx.Observable;

/**
 * Created by liucxu on 2017/3/8.
 */

public class GetCommentsModelImpl implements IGetCommentsModel {
    @Override
    public Observable<CommentsBean> getLastedComments(String fid, String anchor) {
        return ServiceFactory.GetInstance().createService(CommentsService.class).getLastedComments(fid,anchor);
    }

    @Override
    public Observable<CommentsBean> getHotestComments(String fid, String page) {
        return ServiceFactory.GetInstance().createService(CommentsService.class).getHotestComments(fid,page);
    }
}
